public class Port1 {
    public double x;
    public double y;
    public double z;

    Port1(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;

    }

    public static double distance(Port1 a, Port1 b) {
        double x1 = a.x - b.x;
        double y1 = a.y - b.y;
        double z1 = a.z - b.z;
        return Math.sqrt(x1 * x1 + y1 * y1 + z1 * z1);
    }

    public static void main(String[] args) {
        Port1 c1 = new Port1(0.0, 0.0, 0.0);
        Port1 c2 = new Port1(1.0, 1.0, 1.0);
        double c3 = distance(c1, c2);
        System.out.println(c3);
    }

}
